package com.digital.smartgrow.entity.businesscenter;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 动态表单数据
 * </p>
 *
 * @author xiewb
 * @since 2022-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dynamic_form_data")
@ApiModel(value="DynamicFormData对象", description="动态表单数据")
public class DynamicFormData implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "动态表单模板ID")
    @TableField("formTemplateId")
    private Integer formTemplateId;

    @ApiModelProperty(value = "表单内容")
    @TableField("formContent")
    private String formContent;

    @ApiModelProperty(value = "创建人")
    @TableField("createId")
    private Integer createId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("createTime")
    private LocalDateTime createTime;



    @ApiModelProperty(value = "职工号")
    @TableField(exist = false)
    private String employeeId;

    @ApiModelProperty(value = "姓名")
    @TableField(exist = false)
    private String name;


}
